all:main  testudpclient testudpserver 


homepath=..

dependence_kcp=${homepath}/kcp/Control.hpp ${homepath}/kcp/Kcp.hpp ${homepath}/kcp/KcpHdr.hpp
dependence_transport=${homepath}/transport/transport.hpp ${homepath}/transport/transport_udp.hpp
dependenc_util=${homepath}/util/datatypes.hpp ${homepath}/util/header.hpp ${homepath}/util/io.hpp ${homepath}/util/poll_manager.hpp ${homepath}/util/poll_set.hpp ${homepath}/util/util.hpp ${homepath}/util/ThreadPool.hpp ${homepath}/util/Trace.hpp ${homepath}/util/UdpSocket.hpp

lib=-lpthread -lboost_system -lboost_thread



 
main:main.cpp ${dependence}
	g++ -std=c++17 -g -o main main.cpp ${lib}

testudpclient:testudpclient.cpp ${dependence}
	g++ -std=c++17 -g -o testudpclient testudpclient.cpp ${lib} 

testudpserver:testudpserver.cpp ${dependence}
	g++ -std=c++17 -g -o testudpserver testudpserver.cpp ${lib}


clean:
	rm -f main testudpclient testudpserver 
